package com.pactera.madp.cp.mapper.workroom;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.WorkRoomEntity;
import com.pactera.madp.cp.api.dto.workroom.WorkRoomIndexDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description:客户群
 * @author: Huayu
 * @time: 2020/12/8 14:46
 */
public interface WorkRoomMapper extends BaseMapper<WorkRoomEntity> {

    Integer updateWorkRoomsByRoomGroupId(Map<String, Object> map);

    List<WorkRoomEntity> getWorkRoomList(WorkRoomIndexDto workRoomIndexDto);

    List<WorkRoomEntity> selectAll(@Param("corpId") Integer corpId);

    Integer getRoomTodayAddedCount(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("corpId") Integer corpId, @Param("roomIds") List<Integer> roomIds);

    Integer getRoomTodayDismissedCount(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("corpId") Integer corpId,@Param("dismissRoomIds") List<Integer> dismissRoomIds);

}
